President Barack Obama, in a rare discussion about his religious beliefs, described himself on Tuesday as a “Christian by choice” who arrived at his faith in adulthood because “the precepts of Jesus Christ” helped him envision the kind of life he wanted to lead.