China and Hong Kong stocks ended higher on Thursday, buoyed by investor optimism over potential stimulus measures under a second Donald Trump presidency.