The Scottish government has announced plans for a multi-million-pound package of support to help secure the future of the beleaguered Ferguson Marine shipyard.