49ers make just enough plays, hold off Seahawks