A Terre Haute man facing drug and gun charges in federal court has pleaded guilty and been sentenced to federal prison.