On April 27, 2017, Acosta was confirmed by the U. S. Senate by a 60–38 vote. Acosta announced on July 12, 2019 his resignation effective July 19, following criticism of his role in the Jeffrey Epstein sex traffic case.