New York, New Jersey and Pennsylvania declared states of emergency after remnants of Hurricane Ida brought heavy rain and flash flooding.