President Donald Trump’s administration warned Wednesday of a possible legal crackdown on big technology companies over competition or political bias, in a bombshell announcement that came as social media executives were defending their policies before lawmakers.