The pharmaceutical and medical-device industries are deeply unsettled about their future under Republican control in Washington, which presents threats as well as opportunities, according to industry officials and advisers.