The most sweeping rewrite of the nation's tax laws in more than three decades has passed both the House and Senate.