Law minister throws weight behind appointment of ad hoc judges