The Senate on Tuesday passed sweeping bipartisan legislation to overhaul the US Postal Service’s finances and allow the agency to modernize its operations.