Also the 2001 Authorization of The Use of Military Force, which has no expiry date, and allows unrestricted military action against anyone the administration believes played a role in the 9/11 attacks. As far as I'm aware all Trump has to do is claim Iran produced or sheltered terrorists at some point (even if it was in the past) and he's more or less legally in the clear. There's already precedent.
Under Presidents George W. Bush and Barack Obama, the 2001 AUMF was used to justify the deployment of US forces to Afghanistan, the Philippines, Georgia, Yemen, Djibouti, Kenya, Ethiopia, Eritrea, Iraq, and Somalia.
https://www.businessinsider.com/a-bill-to-repeal-the-aumf-just-passed-2017-6
Again, past decisions.
For anyone curious why ripping out LiDAR was a bad idea.
That said, I suspect this is also meant to pre-empt what's been happening to Waymo recently where a small number of protestors were summoning robotaxis and either boxing them in or sabotaging them to use as barricades. With how people feel about Tesla right now, I imagine a whole lot of these would soon be summoned to remote locations to be met by a masked person carrying a can of gas and a lighter. That's also why they're demanding a credit card on file.