midnight appointment

Noun

 * 1)  The appointment of a new person to a role by the existing holder of the role, very shortly before leaving office.