Amazon.com Inc. and Williams-Sonoma Inc. appear to be nearing settlement of their dispute over Amazon's presentation of Williams-Sonoma merchandise on its platform. A deal would end two years of litigation that posed novel issues of trademark and copyright law.