Legislation to support carers