The lawsuit alleged Amazon had enrolled consumers in the Prime program without consent and made it difficult for them to cancel their subscriptions.