The New York City subway system hit one billion rides for the year, a good sign for a public transit system in an era when ridership continues to lag after pandemic-related disruptions.