The president treats rule of law as ‘an impediment to his policy goals,’ federal judge says