The U.S. attorney for Manhattan has resigned after she refused to succumb to pressure from the Justice Department to drop corruption charges against New York City’s mayor.