Regeringens tillfälliga tillstånd för Cementas kalkbrytning strider inte mot lagen, enligt Högsta förvaltningsdomstolen.