Tax credit for buying foreclosed properties debated in Senate