The US president’s Beijing visit signals a shift in both approach and rhetoric toward China across his two terms