Arizona Legislature OKs drought plan hours before federal deadline