Being God, He can command anything He wants.
That was the point. He was asserting that in contradiction to the notion that the devils would only obey Satan. The pharisees needed that explained to them, since they had fallen into thinking in dualistic terms. Since they still DID believe in monotheism, all Jesus had to do was point out to them that their thinking was dualist.