The outgoing president ignored Congress and the courts.