A large part of the discrepancy is not automation, but cheap labour in the East where many of our products are made. Regulation can help redress than inequality.
Repair is so expensive because it's made to be. It shouldn't take several hours of skilled labour to replace an easily broken component like a touchscreen - it should be snap-in. Regulation can address that by mandating reparability.
It's also worth thinking about why we consider replacement being cheaper than repair to be a problem at all - if you trust the market, what's so horrible about that? Real time saver right?
Answer: the price of new goods does not reflect their full environmental and social cost. The switch in your toaster breaks - you buy a new one for a fiver instead of repairing the switch. The old one goes in a landfill. A quantity of non-renewable resources like oil and metal are used up; a the increased demand for these things contributes to the deaths of miners, and people who live near the factories and refineries. Fuel is burned to deliver the new toaster to you, and the Earth's temperature goes up a teeny-tiny fraction. None of these things are included in the price. Regulation can help that too.