McDonnell has spent months trying to reach an agreement with the federal government behind the scenes to train and deputize troopers to make legal status checks and refer individuals for deportation .