BlackRock, the world’s biggest asset manager, announced Friday it is buying Global Infrastructure Partners for about $12 billion in cash and stock.