Two sentenced after lying to judge about military service