The agreement resolves claims filed by 47 US states accusing the tech giant of designing Instagram with addictive features.