The Senate passed a $1.4 trillion infrastructure package after a 16-hour voting session.