Court ruling highlights tough issues faced by academic couples