Ex-Spanish football federation president Luis Rubiales has told a judge that a player gave him consent for a kiss at the 2023 Women's World Cup final in Sydney.