A man who took a viable pressure cooker bomb into a hospital in Leeds intending to "kill as many nurses as possible" has been jailed for life.