Queensland's bowlers spread the load to work through a determined NSW and notch a much-needed Sheffield Shield victory.