Judge says earlier suspension of the Protestant march “erred in law” in dramatic night of court challenges hours before Sunday’s parade