The Federal Housing Finance Agency, Fannie Mae and Freddie Mac are questioning the logic behind a recent federal court ruling that appears to give investors in the government-sponsored enterprises’ stock a glimmer of hope in their legal battles with the federal government.