Swedish utility Vattenfall has been cleared to build a 299 megawatt wind farm at an active coal mine in south Wales, the government said on Tuesday.