Facebook said it plans to hire 10,000 workers in the European Union over the next five years to work on a new computing platform that promises to connect people virtually but could raise concerns about privacy and the social platform gaining more control over people’s online lives.