The Victorian Government has reached an in-principle funding agreement to secure the future of the Alcoa smelter on the state's south-west coast.