The decision by Macy’s to move the Fourth of July fireworks from the East River presented a boon to New Jersey waterfront towns, but also a possible logistical headache.