Commonwealth government given months to end the 'abuse' of its contractors