The deal has been reached during a California federal court trial over claims brought by US states.

This story was reported by BBC News. Read the full coverage at BBC News.