Carlsberg’s £3.3 billion deal to buy J2O maker Britvic has been approved by a High Court judge.