President Trump suggested on Wednesday that he would be willing to consider cuts to social safety-net programs like Medicare to reduce the federal deficit if he wins a second term, an apparent shift from his 2016 campaign promise to protect funding for such entitlements.