Senate passes heavily amended bill to cut education funding