Reduced majority could impair the prime minister’s ability to tackle economic and demographic challenges