The Marines were taken to a local hospital for evaluation as a precaution and have returned to the ship, the Navy says.