Amid a contentious presidential race, Barack Obama called out political rivals that seek to cut scientific funding.