Article Three of the United States Constitution
Section 1 says that judges "shall hold their Offices [keep their jobs] during good Behavior."  This is meant to protect federal judges, and also to make sure that the federal judiciary is independent.