The European Parliament and EU member states have reached an agreement to regulate and improve the working conditions of platform workers.