U.S. judge allows Dakota pipeline to run as Army conducts study