The vote on Tuesday came after Senator Joe Manchin agreed to leave out a plan to make it easier to build energy infrastructure projects, including a gas pipeline in his home state of West Virginia.