The president's action have been unlawful, and counterproductive, the writer says.