ex post facto

From Wiktionary, the free dictionary