Any court ordering the return of a child pursuant to an action brought under
section 9003 of this title shall order the respondent to pay necessary expenses incurred by or on behalf of the petitioner, including court costs, legal fees, foster home or other care during the course of proceedings in the action, and transportation costs related to the return of the child, unless the respondent establishes that such order would be clearly inappropriate.