The next labor secretary will be taking charge of an agency widely criticized for walking away from its regulatory function across a range of issues , including wage and hour law and workplace safety .