One of the strongest quakes to hit the east coast in decades rattled buildings and residents from Virginia to D.C. and New York City.