Among the most expensive pieces of legislation in years, the Republican legislation could reshape the country’s finances for a generation.