The Yorkshire Museum has received a £2 million cash boost from the government to help fix the Grade I listed building’s leaking roof.