Court rules Mubarak to stand trial