The signature policy enacts key parts of Donald Trump’s agenda and could cement his second-term legacy.