President Trump has rejected a bipartisan bill that would have extended federal support for a long-delayed water pipeline project.