The reason that automotive windshields block some types of UV rays is that the windshield is made of laminated glass. Laminated glass sandwiches a plastic film between 2 layers of automotive glass. It is the plastic film that filters the UV.
In the US, in the Tesla Model Y the windshield, glass roof and front windows are made using laminated glass (not sure if the rear hatch glass is laminated.) Tesla Model Y made in China now have laminated glass on all of the passenger windows. In the US, future DOT regulations may require laminated glass to be used on all passenger windows.
When you see those videos of thieves breaking into Tesla vehicles they use a tool to shatter the small side window panel (the side panel is made of safety glass, not laminated glass.) Safety glass breaks into hundreds of small pieces when broken. Safety glass minimizes the chance of the passengers being cut badly, possibly suffering a fatal cut to an artery, by broken glass in the event of a collision. Laminated glass stays intact when broken, reducing the chance of the passengers being ejected from the vehicle as a result of a collision (especially in a rollover collision.)