Acting Navy secretary apologizes amid uproar over leaked carrier speech