Courts routinely issue last minute orders that anybody IN LINE when the polls close are to be allowed to vote.
I work the polls here in New Jersey, and that has always been the case, one of the regular rules- no court required.