The United States is on the edge of a federal government shutdown following a right-wing Republicans in Congress have rejected a long-shot plan for keeping offices operational.