It’s not that Trump declared an emergency, it’s that he declared an emergency when there wasn’t one to bypass Congress. That’s unconstitutional on its face.
He did it to shut the government down so be could afford to build the border wall across Mexico. So far I've never heard another President do that before.