Obama, Clinton pay tribute to John F. Kennedy legacy