WASHINGTON -- Hoping to avoid a systemic meltdown in financial markets , the Federal Reserve on Sunday approved a $ 30 billion credit line to engineer the takeover of Bear Stearns and announced an open-ended lending program for the biggest investment firms on Wall Street .