From phones and laptops to coffee machines and earbuds, new legislation is making it easier to fix tech products.