U.S. authorities in April discovered a cyberattack that had targeted a number of public organizations, including the MTA — the agency that runs subways, buses, commuter railroads, and toll bridges and tunnels in the New York City area.