A disused stone barn at a farm near Longridge is set to be brought back to life after plans for its conversion were approved.