Apple Inc. lost a bid to dismiss a lawsuit alleging that its AirTag devices help stalkers track their victims. US…