China warns US of 'countermeasures' after Trump signs Hong Kong bill backing protesters