The president’s executive orders punishing law firms that clash with his agenda face a wave of legal actions