Congress extends R&D tax credit in bailout