St. Paul man charged in near-fatal beating