The chip giants will hand revenues to the US government in exchange for licences to export to China.