MPs, judges to face sexual harassment laws