U.S. court allows Dakota Access oil pipeline to stay open, but permit status unclear