Some tech entrepreneurs and venture firms once shunned Middle Eastern funding, driven by concern for human rights abuses, the region’s ties to China and industry disdain for what was once considered lucrative.