Legislation that would have handed President-elect Donald Trump sweeping power to investigate and shutter news outlets, government watchdogs, humanitarian organizations, and other nonprofits was defeated in the House of Representatives on Tuesday after a coalition of progressive advocacy groups and lawmakers mobilized against it, warning of the bill’s dire implications for the right to dissent.