A federal judge sentenced a Baltimore man to prison Thursday for sex trafficking a minor and using the internet to promote prostitution, the U.S. Attorney's Office announced.