US states sought $1.4-trillion before trial. Meta Platforms settled for $18-billion and its shares went up.