Here is what I did to get the password updated.
$password = $postData['password']['first'];
$factory = $this->get('security.encoder_factory');
$encoder = $factory->getEncoder($user);
$password = $encoder->encodePassword($password, $user->getSalt());