A legal challenge over the decision to give consent to the UK's largest untapped oil field has begun in Edinburgh.