U.S. court ruling could threaten pipeline projects with delays