Senedd members have backed calls for a bill to ensure better support for more than 310,000 unpaid carers across Wales.