ANSWER:
It is an issue of dispute. If you recited it, your prayer is valid.
https://islamqa.info/en/answers/72221/ruling-on-reciting-al-faatihah-in-the-funeral-prayer
https://islamqa.info/en/answers/72221/ruling-on-reciting-al-faatihah-in-the-funeral-prayer