Fun fact! The NHTSA requires any aftermarket replacement LED bulb be approved by them, and have noted in this letter that not a single aftermarket replacement bulb has received such approval.
As of writing this comment, LED retrofit headlights are illegal. It's just that this rule hasn't been enforced in a very long time (if ever)
Can confirm. I had after market xenon's in my old car. I took great pains to make sure I had the correct housings and everything was aimed. To my surprise, they never checked
Edit: I used factory parts from the xenon option that came from the OEM. You can stop rage down voting. Not every xenon upgrade is eBay blue.
The vast majority of what blinds me on my drives are completely factory headlights. There are still those with aftermarket bulbs, but I get blinded by stock Dodge Rams and Toyota Highlanders all the time.