California has introduced a bill to encourage local governments to recycle and divert their green waste from landfills.