The tech giant faces legal action from 37 US states over its app store practices.