Exit comes amid deepening turmoil for White House as midterm elections loom