Don’t those cases establish that police may, within the bounds of the fourth amendment, detain both the driver and any passengers; which then triggers requirements under other state laws allowing police to compel detained people to identify themselves?
E.g., https://en.wikipedia.org/wiki/Stop_and_identify_statutes ?