trump backed law suffered humiliating defeat