Australian telecoms giant Optus must pay the cost of replacing the passports and drivers licences of millions of custome