We live in a free market economy
If Apple decides to sell iPhones with the case filled with some heat conducting polyester compound, making any repair attempt impossible, they are free to do this. If people continue to buy such devices by the billions, then it is a perfect decision within the metrics of free market and short term capitalist profit making.
Similar to soldering SSD drives on the motherboards of MacBooks, it borders criminal intent to turn expensive gear into E-Waste within the shortest amount of time after the warranty period expired.
Creating legislation to cover all aspects of "Right to repair" will be close to impossible, there are too many ways EOM manufacturers can subtly sabotage repair attempts. The solution is to simply make hard to repair products expensive for the first buyer or the manufacturer.
To legally define what is "hard to repair" will be difficult.
A solution to reduce waste, legislators could simply increase legally required warranty periods for anything that costs over $100 to 5-10 years. In this case, the free market will do its thing in a positive manner, manufacturers will automatically be turning out products which are easy to repair, otherwise they would end up with high costs fulfilling warranty claims.
Such an increase in warranty would have a positive impact on reduction of waste and CO2 emissions. It would also have a positive impact on local employment, since Big-Tech would have to create repair franchises in countries where they sell their products, creating a situation where it shares benefits with others.