The Senate on Saturday passed a $300 billion housing rescue bill aimed at helping troubled homeowners avoid foreclosure and supporting mortgage giants Fannie Mae and Freddie Mac.