ex post facto law — Legal Definition, Examples & Cases