New York and New Jersey declare states of emergency as remnants of Hurricane Ida that affected the northeast