Philippine president’s courting of China as he pivots away from the United States could reap dividends – or a military coup