Sarkozy appears in court in campaign funding case