Former borders minister Dame Angela Eagle and policing minister Dame Diana Johnson have been moved to other departments.