Beyoncé thanks Obama for helping inspire baby Blue Ivy