Congress has passed legislation aimed at addressing the nation's housing shortage by increasing the supply of affordable homes and reducing barriers to new construction.