Legislation passed to ensure nurses are rostered on around the clock in aged care.