Fee = payment for services rendered, in this case the payment due to the attorney (US English - lawyer in UK English. In your example sentence the meaning is that the ‘prevailing party’ (to prevail means to win or overcome, in this context the meaning is to come out of a legal process of some kind as the winner) will have their legal fees paid by the losing party.