Appointments are legal: J&K mantri