President Trump’s embattled labor secretary, R. Alexander Acosta, on Friday announced his plans to resign as controversy lingered over his handling of a sex crimes case involving a financier, Jeffrey E. Epstein, when Mr. Acosta was a federal prosecutor in Florida. Mr. Acosta’s resignation, effective July 19, brings to four the number of cabinet agencies led by acting secretaries. The department’s deputy secretary, Patrick Pizzella, would assuming the role of acting secretary, Mr. Trump said.