There are, in isolation, arguments that someone could give for these actions to levy a rational basis. But given that the administration's own statements are frequently inconsistent with its actions, the best explanation for this is also the dumbest: the country is run by a toddler throwing a tantrum. The tantrums don't make sense (ever see a toddler throwing a tantrum); so stop trying to make sense of them.