From: Rabbi Mordechai Leib Winkler
To: Rabbi Chaim Roth
The question is whether a blessing recited on hand tefillin that are later found to be invalid constitutes a blessing in vain retroactively, especially if the head tefillin were valid.
Source: Orach Chayim II §5