President Trump has targeted big law firms that he said have “weaponized” the legal system.