Swalwell, a Democratic lawmaker running in California as gubernatorial candidate, was accused of harassing young female staffers.