The man who broke into former House Speaker Nancy Pelosi's home and attacked her husband with a hammer has been sentenced to 30 years in federal prison.