Washington has ended decades of restrictions on official contact with Taiwan, which Beijing considers as its territory.