WASHINGTON—Alphabet Inc.’s Google has agreed to pay $90 million to settle a legal fight with app developers over the money they earned creating apps for Android smartphones and for enticing users to make in-app purchases, according to a court filing. The app developers, in a lawsuit filed in federal court in San Francisco, had accused…