The US Supreme Court declared that no president could be sued for their choices while in office.

The rule came after an Air Force personnel named Arthur Ernest Fitzgerald tried to sue President Richard Nixon after losing his contractor position.

Source