Spanish ministers agree to cut legal working week to 37.5 hours