SABMiller's acquisition of Foster's Group has become "legally effective" after an Australian court approved the deal.