Judge rules dozens of Dunleavy's appointments are in questio