WASHINGTON—Saying his wife of 24 years had already sacrificed so much for the sake of his career and that it was time to return the favor, Barack Obama announced Wednesday his resignation as president of the United States of America, effective immediately, following news that Michelle Obama had landed her dream job in Seattle.