The use of public funds to support the mining sector could fall foul of EU state aid rules, warn legal experts at a climate NGO.