Tidal surges swamped low-lying neighborhoods in New Jersey while wind gusts toppled trees on New York's Long Island.