Ministers lose right to determine civil service appointments